public class MaximumRepetition {
    //方法的重载：名字一样，参数列表不一样，返回值不一样
    public static int max (int a , int b) {
        if(a>b) {
            return a;
        }
        return b;
    }
    public static double max (double a,double b,double c) {
        double temp=0;
        if(a>b) {
            temp=a;
        }else{
            temp=b;
        }
        if(temp>c) {
            return temp;
        }
        return c;
    }
    public static void main(String[] args) {
        int a=10,b=20;
        double c=1.56,d=2.35,e=3.71;
        System.out.println(max(a,b));
        System.out.println(max(c,d,e));
    }
}
